#ifndef DDMSFORM_H
#define DDMSFORM_H

#include <QWidget>
#include <QMenu>
#include <QMenuBar>
#include <QMessageBox>
#include <QMouseEvent>
#include <QGroupBox>
#include <QtCharts/QPieSeries>
#include "recordform.h"
#include "predictlineform.h"
#include "workplatform.h"



namespace Ui {
class DdmsForm;
}



class DdmsForm : public QWidget
{
    Q_OBJECT

public:
    explicit DdmsForm(QWidget *parent = nullptr);
    ~DdmsForm();

    void createTabNav();
    void resetBtnStyle();
    void updateUI(int theme);
    void closeEvent(QCloseEvent *e);
    RecordForm *rf = new RecordForm();
    PredictLineForm *pl = new PredictLineForm();
    WorkPlatForm *wpl = new WorkPlatForm();


private slots:
    void on_pushButton_clicked();

    void on_pushButton_4_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();



private:
    Ui::DdmsForm *ui;
    QMenu *DocuMenu;//菜单名
    QAction *DocuAction;//可看做菜单项

    QGroupBox *horizontalGroupBox;
    enum { NumGridRows = 3, NumButtons = 4 };
    QPushButton *buttons[NumButtons];
};

#endif // DDMSFORM_H
